package com.kakarote.authorization.entity;

import com.kakarote.authorization.common.LoginType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 *
 * 用户登录认证对象
 * todo 以后需将所有认证类型参数都挪到authorization字段上，如：password、smscode、cpCode、corpId，wxUserId，然后再由不同鉴权实现分别处理
 * @author zhangzhiwei
 */

@Data
@ApiModel(value = "权限认证对象")
public class AuthorizationUser {

    @ApiModelProperty("用户名")
    private String username;

    @ApiModelProperty("认证标识")
    private String authorization;

    @ApiModelProperty("短信验证码")
    private String smscode;

    @ApiModelProperty("用户密码")
    private String password;

    @ApiModelProperty("企业微信code或飞书登录的code")
    private String cpCode;

    @ApiModelProperty("企业微信corpId")
    private String corpId;

    @ApiModelProperty("登录类型")
    private LoginType loginType;


    @ApiModelProperty("类型 1 pc 2 mobile 3 小程序")
    private Integer type;

    @ApiModelProperty("微信(飞书、钉钉)用户ID")
    private String wxUserId;



}
